package com.xueyi.aixihu.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author lvyi
 * @date : 2022/8/18
 * @Description :
 */
@Data
public class FindDtUsersVo {

    private Integer id;

    private String username;

    private String password;

    private String avatar;

    private String email;

    private String emailCode;

    private String phone;

    private Boolean status;

    private Integer registerTime;

    private String lastLoginIp;

    private Integer lastLoginTime;

    /**
     *  0：删除 1：正常 2：禁用 3：过期
     */
    private Integer isValid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String wxOpenId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTimeNew;

    private Integer userType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    private String roleName;

    private String areaName;
}
